<div class="content filtro">
    <div class="tl">Filtrar Videoaulas</div>
    <form id="form" method="post">
    <ul class="categorias">
        <li><label><input class="flt_sb_cur" type="radio" name="filtro" value="" checked="" />Todos</label></li>
        <?php foreach($this->filtro as $fil) { ?>
        <li><label><input class="flt_sb_cur" type="radio" name="filtro" value="<?php echo $fil['CTC_ID'];?>" /> <?php echo $fil['CTC_NOM'];?></label></li>
        <?php } ?>
    </ul>
    </form>    
</div>  

<div id="ct_curso">
<?php foreach($this->result as $row){ 
$cat = $row->findDependentRowSet("Ead_Model_DbTable_Catcurso");     
?>
<div class="content mat-list">
    <div class="tl-img-list"><a class="<?php echo $cat[0]['CTC_CSS']; ?>"></a></div>
    <div class="titulo">
        <?php echo $row->VID_NOM; ?>
        <?php if($row->VID_CENE == 1){ ?>
            <img src='<?php echo $this->urlbase; ?>/public/media/images/btn_cene.png' class="user_cene" />
        <?php } ?>
    </div>
    <div class="descricao">
        <?php echo $row->VID_DESC; ?>
    </div>
    <?php if($row->VID_CENE == 1 && Zend_Auth::getInstance()->hasIdentity()){ ?> 
        <?php if (Zend_Auth::getInstance()->getStorage()->read()->USU_CENE == 1) { ?>
            <a href="<?php echo $this->urlbase.'/'.$this->controller."/detalhes/id/".$row->VID_ID; ?>" class="btn-gg"> Assitir Agora</a>
        <?php } else { ?>
            <a href="javascript:user_cene()" class="btn-gg"> Assitir Agora</a>
        <?php } ?>
            
    <?php } else { ?>
        <a href="<?php echo $this->urlbase.'/'.$this->controller."/detalhes/id/".$row->VID_ID; ?>" class="btn-gg"> Assistir Agora</a>
    <?php } ?>
</div>
<?php } ?>
</div>

<?php if($this->btn_mais == 1){ ?>
<div class="cont_ms_cur">
    <img class="loader" src='<?php echo $this->urlbase; ?>/public/media/images/loader.gif' />
    <a href="javascript:void(0)" class="btn-button maismaterias" offset="0">Mais Cursos <img src="public/media/images/seta_b.png" /></a>
</div>
<?php } ?>